import Vue from 'vue'
export const auth = {
  login: (params) => {
    return Vue.prototype.$post('teacherClient/login', params)
  },
  logout: () => {
    return Vue.prototype.$get('common/logout')
  },
  logout2: () => {
    return Vue.prototype.$get('teacherClient/logout')
  },
  getCaptcha: () => {
    return Vue.prototype.$get('teacherClient/captcha')
  },
  commonGetUser: (params) => {

    return Vue.prototype.$get(`common/userInfo/${params}`)
  },
}
